3.1.70 \(\int x^2 \log (c (d+e x^n)^p) \, dx\) [70]

Optimal. Leaf size=65 \[ -\frac {e n p x^{3+n} \, _2F_1\left (1,\frac {3+n}{n};2+\frac {3}{n};-\frac {e x^n}{d}\right )}{3 d (3+n)}+\frac {1}{3} x^3 \log \left (c \left (d+e x^n\right )^p\right ) \]

[Out]

-1/3*e*n*p*x^(3+n)*hypergeom([1, (3+n)/n],[2+3/n],-e*x^n/d)/d/(3+n)+1/3*x^3*ln(c*(d+e*x^n)^p)

________________________________________________________________________________________

Rubi [A]
time = 0.02, antiderivative size = 65, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 16, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.125, Rules used = {2505, 371} \begin {gather*} \frac {1}{3} x^3 \log \left (c \left (d+e x^n\right )^p\right )-\frac {e n p x^{n+3} \, _2F_1\left (1,\frac {n+3}{n};2+\frac {3}{n};-\frac {e x^n}{d}\right )}{3 d (n+3)} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[x^2*Log[c*(d + e*x^n)^p],x]

[Out]

-1/3*(e*n*p*x^(3 + n)*Hypergeometric2F1[1, (3 + n)/n, 2 + 3/n, -((e*x^n)/d)])/(d*(3 + n)) + (x^3*Log[c*(d + e*
x^n)^p])/3

Rule 371

Int[((c_.)*(x_))^(m_.)*((a_) + (b_.)*(x_)^(n_))^(p_), x_Symbol] :> Simp[a^p*((c*x)^(m + 1)/(c*(m + 1)))*Hyperg
eometric2F1[-p, (m + 1)/n, (m + 1)/n + 1, (-b)*(x^n/a)], x] /; FreeQ[{a, b, c, m, n, p}, x] &&  !IGtQ[p, 0] &&
 (ILtQ[p, 0] || GtQ[a, 0])

Rule 2505

Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_)^(n_))^(p_.)]*(b_.))*((f_.)*(x_))^(m_.), x_Symbol] :> Simp[(f*x)^(m +
 1)*((a + b*Log[c*(d + e*x^n)^p])/(f*(m + 1))), x] - Dist[b*e*n*(p/(f*(m + 1))), Int[x^(n - 1)*((f*x)^(m + 1)/
(d + e*x^n)), x], x] /; FreeQ[{a, b, c, d, e, f, m, n, p}, x] && NeQ[m, -1]

Rubi steps

\begin {align*} \int x^2 \log \left (c \left (d+e x^n\right )^p\right ) \, dx &=\frac {1}{3} x^3 \log \left (c \left (d+e x^n\right )^p\right )-\frac {1}{3} (e n p) \int \frac {x^{2+n}}{d+e x^n} \, dx\\ &=-\frac {e n p x^{3+n} \, _2F_1\left (1,\frac {3+n}{n};2+\frac {3}{n};-\frac {e x^n}{d}\right )}{3 d (3+n)}+\frac {1}{3} x^3 \log \left (c \left (d+e x^n\right )^p\right )\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.02, size = 61, normalized size = 0.94 \begin {gather*} \frac {1}{3} x^3 \left (-\frac {e n p x^n \, _2F_1\left (1,\frac {3+n}{n};2+\frac {3}{n};-\frac {e x^n}{d}\right )}{d (3+n)}+\log \left (c \left (d+e x^n\right )^p\right )\right ) \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[x^2*Log[c*(d + e*x^n)^p],x]

[Out]

(x^3*(-((e*n*p*x^n*Hypergeometric2F1[1, (3 + n)/n, 2 + 3/n, -((e*x^n)/d)])/(d*(3 + n))) + Log[c*(d + e*x^n)^p]
))/3

________________________________________________________________________________________

Maple [F]
time = 0.05, size = 0, normalized size = 0.00 \[\int x^{2} \ln \left (c \left (d +e \,x^{n}\right )^{p}\right )\, dx\]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x^2*ln(c*(d+e*x^n)^p),x)

[Out]

int(x^2*ln(c*(d+e*x^n)^p),x)

________________________________________________________________________________________

Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^2*log(c*(d+e*x^n)^p),x, algorithm="maxima")

[Out]

-1/9*(n*p - 3*log(c))*x^3 + d*n*p*integrate(1/3*x^2/(e*x^n + d), x) + 1/3*x^3*log((e*x^n + d)^p)

________________________________________________________________________________________

Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^2*log(c*(d+e*x^n)^p),x, algorithm="fricas")

[Out]

integral(x^2*log((x^n*e + d)^p*c), x)

________________________________________________________________________________________

Sympy [C] Result contains complex when optimal does not.
time = 7.90, size = 104, normalized size = 1.60 \begin {gather*} \frac {x^{3} \log {\left (c \left (d + e x^{n}\right )^{p} \right )}}{3} - \frac {e p x^{3} x^{n} \Phi \left (\frac {e x^{n} e^{i \pi }}{d}, 1, 1 + \frac {3}{n}\right ) \Gamma \left (1 + \frac {3}{n}\right )}{3 d \Gamma \left (2 + \frac {3}{n}\right )} - \frac {e p x^{3} x^{n} \Phi \left (\frac {e x^{n} e^{i \pi }}{d}, 1, 1 + \frac {3}{n}\right ) \Gamma \left (1 + \frac {3}{n}\right )}{d n \Gamma \left (2 + \frac {3}{n}\right )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x**2*ln(c*(d+e*x**n)**p),x)

[Out]

x**3*log(c*(d + e*x**n)**p)/3 - e*p*x**3*x**n*lerchphi(e*x**n*exp_polar(I*pi)/d, 1, 1 + 3/n)*gamma(1 + 3/n)/(3
*d*gamma(2 + 3/n)) - e*p*x**3*x**n*lerchphi(e*x**n*exp_polar(I*pi)/d, 1, 1 + 3/n)*gamma(1 + 3/n)/(d*n*gamma(2
+ 3/n))

________________________________________________________________________________________

Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^2*log(c*(d+e*x^n)^p),x, algorithm="giac")

[Out]

integrate(x^2*log((x^n*e + d)^p*c), x)

________________________________________________________________________________________

Mupad [F]
time = 0.00, size = -1, normalized size = -0.02 \begin {gather*} \int x^2\,\ln \left (c\,{\left (d+e\,x^n\right )}^p\right ) \,d x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x^2*log(c*(d + e*x^n)^p),x)

[Out]

int(x^2*log(c*(d + e*x^n)^p), x)

________________________________________________________________________________________